import {useState} from "react";

type User = {
    name: string,
    age: number
}

function App() {
    const [user, setUser] = useState<User>({
        name: 'jack',
        age: 20
    })
    console.log(user)
    setUser(user)
    return (
        <>

        </>
    )
}

export default App
